package com.lin.demo.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.demo.entity.Product;

import java.util.List;

/**
 * @Author zimingl
 * @Date 2023/3/16 23:35
 * @Description: TODO
 */
public interface ProductDao extends IService<Product> {
    <Q> Product getOne(Q query);

    <Q> List<Product> getList(Q query);

    <Q> Page<Product> getPage(Page<Product> page, Q query);
}
